VizblARController

Public API for controlling the AR experience.

  • Provides methods for scene manipulation, session management, and accessing current view state.

Inheritors

Properties

Link copied to clipboard

The unique identifier of the most recently added instance, or null if no instances have been added.

Link copied to clipboard

The collection of all 3D objects currently placed within the AR scene.

Link copied to clipboard

The unique identifier of the currently selected instance, or null if no instance is selected.

Link copied to clipboard

The current configuration for AR view layers and visual settings. Defines how the 3D content and UI overlays are rendered.

Functions

Link copied to clipboard
abstract suspend fun add(model: ARObjectReference, configuration: ARObjectConfiguration.() -> Unit = {}): InstanceId

Adds a new 3D object to the AR scene using a model reference.

Link copied to clipboard
abstract fun capture(view: SurfaceView, fileName: String? = null, onSuccess: (Uri) -> Unit)

Captures the current frame of the specified SurfaceView and saves it to storage.

Link copied to clipboard
abstract fun captureAndShare(view: SurfaceView, text: String? = null, onSuccess: (Uri) -> Unit)

Captures the current frame of the specified SurfaceView and launches a system share dialog.

Link copied to clipboard
abstract fun clearCache()

Clears all cached resources utilized by the AR session.

Link copied to clipboard
abstract fun dismiss()

Closes the AR experience and releases associated resources.

Link copied to clipboard
abstract fun pauseSession()

Pauses the current AR session, halting rendering and tracking.

Link copied to clipboard
abstract fun remove(instanceId: InstanceId)

Removes a placed object from the scene using its instance identifier.

Link copied to clipboard
abstract fun removeAll()

Removes all placed objects from the current scene.

Link copied to clipboard
abstract suspend fun replace(instanceId: InstanceId, with: ARObjectReference, configuration: ARObjectConfiguration.() -> Unit = {}): InstanceId

Replaces an existing AR object with a new one.

Link copied to clipboard
abstract fun resumeSession()

Resumes a previously paused AR session.

Link copied to clipboard
abstract fun startQRScanner()

Initializes and starts the QR code scanning process using the device camera.

Link copied to clipboard
abstract fun stopCapture()

Cancels any ongoing screen capture operation.